/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
// pprompt.hpp - simple prompt class definition.
//
// Author: Kenneth G. Maxwell
//
// Copyright (c) 1997-2000 Swell Software 
//              All Rights Reserved.
//
// Unauthorized redistribution of this source code, in whole or part,
// without the express written permission of Swell Software
// is strictly prohibited.
//
// Notes:
//
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/

#ifndef _PEGPROMPT_
#define _PEGPROMPT_

class PegPrompt : public PegTextThing
{
    public:

        PegPrompt(const PegRect &Rect, PEGUINT StringId = 0,
                  PEGUSHORT Id = 0,
                  PEGULONG Style = FF_NONE|TJ_LEFT|AF_TRANSPARENT);

        PegPrompt(const PEGCHAR *pText, const PegRect &Rect,
                  PEGUSHORT Id = 0,
                  PEGULONG Style = TT_COPY|FF_NONE|TJ_LEFT|AF_TRANSPARENT);

        PegPrompt(const PegPoint &Put, PEGUINT StringId = 0,
                  PEGUSHORT Id = 0,
                  PEGULONG Style = FF_NONE|TJ_LEFT|AF_TRANSPARENT,
                  PEGUINT FontId = 0);

        PegPrompt(const PEGCHAR *pText, const PegPoint &Put,
                  PEGUSHORT Id = 0,
                  PEGULONG Style = TT_COPY|FF_NONE|TJ_LEFT|AF_TRANSPARENT,
                  PEGUINT FontId = 0);

        virtual ~PegPrompt();

        virtual void Draw(const PegRect &Invalid);
        virtual PEGINT Message(const PegMessage &Mesg);

    protected:
        void PromptInit(PEGULONG Style);
};


#endif

